﻿<UserControl 
  x:Class="CARE.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
  xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

  <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

    <Grid Style="{StaticResource NavigationOuterGridStyle}">
    	<Grid.Background>
    		<ImageBrush ImageSource="sky-wallpaper-02923.jpg"/>
    	</Grid.Background>
    	<Border x:Name="NavigationGrid" Height="33" Margin="24,29,28,0" VerticalAlignment="Top" Opacity="0.6" CornerRadius="10">
    		<Border.Background>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="Black" Offset="0"/>
    				<GradientStop Color="#FFEE1CF1" Offset="1"/>
    			</LinearGradientBrush>
    		</Border.Background>
    		<Border.Effect>
    			<DropShadowEffect BlurRadius="10" ShadowDepth="10"/>
    		</Border.Effect>
    		<Grid>

    			<Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}" Margin="0,0,15,0" VerticalAlignment="Top" d:LayoutOverrides="Height">
    				<StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}" Margin="0,3,0,11" VerticalAlignment="Stretch" d:LayoutOverrides="Height">

    					<HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/Home" TargetName="ContentFrame" Content="home" Foreground="#FF1FFF00" FontSize="13.333" FontWeight="Bold">
    						<HyperlinkButton.BorderBrush>
    							<SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
    						</HyperlinkButton.BorderBrush>
    						<HyperlinkButton.Background>
    							<SolidColorBrush Color="#FF862297" Opacity="0.5"/>
    						</HyperlinkButton.Background>
    					</HyperlinkButton>

    					<Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>
    					
                        <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/Actions" TargetName="ContentFrame" Content="actions" Foreground="#FF1FFF00" FontSize="13.333" FontWeight="Bold" Visibility="Collapsed">
    						<HyperlinkButton.BorderBrush>
    							<SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
    						</HyperlinkButton.BorderBrush>
    						<HyperlinkButton.Background>
    							<SolidColorBrush Color="#FF862297" Opacity="0.5"/>
    						</HyperlinkButton.Background>
    					</HyperlinkButton>
    					
                        <Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}" Visibility="Collapsed"/>

    					<HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/About" TargetName="ContentFrame" Content="about" FontSize="13.333" FontWeight="Bold" Foreground="#FF1FFF00">
    						<HyperlinkButton.BorderBrush>
    							<SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
    						</HyperlinkButton.BorderBrush>
    						<HyperlinkButton.Background>
    							<SolidColorBrush Color="#FF781E8B" Opacity="0.5"/>
    						</HyperlinkButton.Background>
    					</HyperlinkButton>

    				</StackPanel>
    			</Border>
    			<TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Height="19" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="69" FontFamily="Fonts/Fonts.zip#Microsoft New Tai Lue" FontSize="18.667" FontStretch="Condensed" FontWeight="Normal" TextAlignment="Center" Foreground="#FF1FFF00"><Run Text="C"/><Run Text="ARE"/></TextBlock>

    		</Grid>
    	</Border>

      <Border x:Name="loginContainer" Style="{StaticResource LoginContainerStyle}" Margin="0" Background="{x:Null}"/>
    </Grid>

    <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" Margin="28,101,38,27" CornerRadius="10" Background="#B2141314">
            <navigation:Frame  x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>
                  <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                    <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                  </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
    </Border>

  </Grid>

</UserControl>